//
//  SEPickupInquiryView.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/5/8.
//

import UIKit

class SEPickupInquiryView: UIView {
    
    var inquiryHandler: ((Bool) -> Void)?
    
    @IBAction private func rejectAction() {
        inquiryHandler?(false)
    }
    
    @IBAction private func confirmAction() {
        inquiryHandler?(true)
    }

    @IBOutlet private weak var rejectButton: UIButton! {
        didSet {
            rejectButton.layer.cornerRadius = rejectButton.height / 2
            rejectButton.layer.borderWidth = 1
            rejectButton.layer.borderColor = Asset.main.color.cgColor
        }
    }
    
    @IBOutlet private weak var confirmButton: UIButton! {
        didSet {
            confirmButton.layer.cornerRadius = confirmButton.height / 2
        }
    }

}
